package cn.ym.user.mapper;

import cn.ym.user.domain.User;
import cn.ym.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ym
 * @since 2022-11-03
 */
public interface UserMapper extends BaseMapper<User> {

    //通过电话查询
    User findByPhone(String phone);
    //邮箱注册
    User findByEmail(String email);
    //根据LogininfoId查询user
    User loadByLogininfoId(Long id);
}
